package com.sun.module_network.interceptort


import com.sun.module_network.utils.loge
import okhttp3.Interceptor
import okhttp3.Response
import java.io.IOException
/**
 *@author:sunc
 *@time :2025/7/18 15:06
 *@desc: 描述
 */
class CommonResponseInterceptor : Interceptor {
    @Throws(IOException::class)
    override fun intercept(chain: Interceptor.Chain): Response {
        val requestTime = System.currentTimeMillis()
        val response: Response = chain.proceed(chain.request())
        "requestTime=${(System.currentTimeMillis() - requestTime)}".loge()
        return response
    }
}